package com.lebang.model.cences;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @Author: hwq
 * @Date: 2020/4/9 14:18
 * @Version 1.0
 */
@Data
@Document("cences_msg")
public class CencesMsg {
    private String msg;
    private String date;
    private Long time;

    public CencesMsg(String s) {
        msg = s;
        date = LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME);
       // time = t;
    }
    public CencesMsg(String s,Long t) {
        msg = s;
        date = LocalDateTime.now().format(DateTimeFormatter.ISO_DATE_TIME);
        time = t;
    }
}
